#ifndef TYPES_H
#define TYPES_H

/* 数据类型 */
typedef unsigned char       u8;
typedef unsigned short      u16;
typedef unsigned int        u32;
typedef unsigned long long  u64;
typedef signed char         i8;
typedef signed short        i16;
typedef signed int          i32;
typedef signed long long    i64;


/* 常量类型 */
#ifndef FALSE
  #define FALSE 0
#endif
#ifndef TRUE
  #define TRUE  1
#endif


/* 结构体操作 */
#define MEMCLR(x)       memset(&x, 0, sizeof(x))
#define MEMCPY(x, y)    memcpy(&x, &y, sizeof(x))



#endif
